package samples.boot.anla;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author luoan
 * @version 1.0
 * @date 2019/8/7 11:46
 **/
@RestController
@EnableAutoConfiguration
public class Application {
    @RequestMapping("/")
    String home() {
        return "Hello World!";
    }

    public static void main(String[] args) {
        // 告诉SpringBoot，哪个是主要的Spring组件
        SpringApplication.run(Application.class, args);
    }
}